package com.mixiaoxiao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.mixiaoxiao.weather.MainActivity;

public class IndexActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_index);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(IndexActivity.this, MainActivity.class));
                finish();
            }
        }, 3000);
    }

    @Override

    public void finish() {
        super.finish();
        overridePendingTransition(0, 0);
    }
}
